#include "../../Core/common.h";
#include "Object.h";

Object::Object()
{

}

Object::~Object()
{

}


void* Object::operator new(size_t size)
{
	void* p = malloc(size);

	if (p == NULL)
		throw std::bad_alloc();

	printf("Vytvarim instanci o velikosti: %d\n", size);
	printf("Vytvarim instanci na adrese: %d\n", p);

	return p;
}

void Object::operator delete(void *p)
{
	printf("Uvolnuji instanci z adresy: %d\n", p);
	free(p);
}